<script>
var check = false;

function checkfans(){
	if(!check){
		check = true;
		{if $theme['isautorefund'] == 1 }
		   	$.ajax({
				 type:'POST',
				 data:{},
				 dataType : "json",
				 url:'/{php echo createMobileUrl("autorefund",array("op"=>"auto","themeid"=>$themeid));}',
				 success:function(data){
					  var json = data.message;
				 }
			 });

	    {/if}
	}
	
}
checkfans();

</script>